﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class PurchaseOrder : Form

    {
        Transaction.Quotationtransaction qtntrnctn = null;
        public PurchaseOrder()
        {
            InitializeComponent();
            qtntrnctn= new Transaction.Quotationtransaction();
            dataGridView1.DataSource = qtntrnctn.getquotationdatabypk(25);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            qtntrnctn = new Transaction.Quotationtransaction();
            Reports.Quotationreport report= new Reports.Quotationreport();

            report.SetDataSource((DataTable)qtntrnctn.getquotationdatabypk(25));
            Reports.Quotationreportform qtnrptform = new Reports.Quotationreportform();
           
            qtnrptform.ReportSource = report;
            qtnrptform.ShowDialog();
          

        }
    }
}
